package com.flyox.game.militarychess;

public class CONSTS {
	public static final int SYS_CFG_NIO_MAX_THREADS=2;//读写最大线程数 将来考虑线程池
	public static final int SYS_CFG_NIO_PORT=8808;//nio  服务端端口号
	public static final int SYS_CFG_BROAD_PORT=8809;//广播端口
	public static final String SYS_CFG_BROAD_GROUP="239.255.0.239";//广播端口
	public static final boolean SYS_CFG_CHESS_CONVERT=false;
	
	public static final String SYS_SESSION_PLAYERID="playerid";
	public static final int rows=13;
	public static final int cols=20;
	public static final int defaultDeskNum=9;
	
	//command in
	public static final int CMD_HELLO=1;
	public static final int CMD_HAND_1=2;
	public static final int CMD_HAND_2=3;
	
	public static final int CMD_SEC=10;
	public static final int CMD_SEC_LOGIN=11;
	public static final int CMD_SEC_ONSEAT=12;
	public static final int CMD_SEC_READY=13;
	public static final int CMD_SEC_REFRESH=14;
	public static final int CMD_SEC_EAT=15;
	public static final int CMD_SEC_MOVE=16;
	public static final int CMD_SEC_LOGOUT=17;
	public static final int CMD_SEC_LONGLIVE=18;
	public static final int CMD_SEC_DRAW=19;//和棋
	public static final int CMD_SEC_SURRENDER=20;//投降
	public static final int CMD_SEC_OVERTIME=21;//投降
	public static final int CMD_SEC_MESSAGE=22;//广播信息
	
	public static final int CMD_BOARD=30;//
	public static final int CMD_BOARD_ONSEAT=31;//
	public static final int CMD_BROAD_LEAVE_SEAT=32;
	public static final int CMD_BOARD_READY=33;//
	public static final int CMD_BOARD_EAT=34;//
	public static final int CMD_BOARD_MOVE=35;//
	public static final int CMD_BOARD_LOGOUT=36;//
	public static final int CMD_BOARD_MESSAGE=37;//
	public static final int CMD_BOARD_SURRENDER=38;//
	public static final int CMD_BOARD_OVERTIME=39;//
	
	public static final int CMD_MANAGER=40;//管理
	public static final int CMD_MANAGER_LAYOUT=41;//查看布局
	public static final int CMD_MANAGER_USERS=42;//查看布局
	
	public static final int RESPONSE_ERROR=0;
	public static final int RESPONSE_OK=1;
	
	public static final int RESPONSE_EAT_WIN=10;//from 个人状态 赢
	public static final int RESPONSE_EAT_FAIL=11;//失败
	public static final int RESPONSE_EAT_DRAW=12;//
	public static final int RESPONSE_EAT_CONTINUE=13;//未分输赢
	
	public static final int PLAYER_STATS_NOLOGIN=0;//0:未登录 
	public static final int PLAYER_STATS_HELLO=1;//hello
	public static final int PLAYER_STATS_HAND1=2;//CMD_HAND_1
	public static final int PLAYER_STATS_HAND2=3;//CMD_HAND_2
	public static final int PLAYER_STATS_LOGIN=4;//CMD_LOGIN
	public static final int PLAYER_STATS_ONSEAT=5;//以坐下
	public static final int PLAYER_STATS_READY=6;//等待其他人开始
	public static final int PLAYER_STATS_PLAYING=7;//比赛进行中
	public static final int PLAYER_STATS_FAIL=8;//比赛失败
	public static final int PLAYER_STATS_WIN=9;//比赛赢
	
	public static final int POS_FIELD_HEADQUARTER=1;//行营
	public static final int POS_SUPREME_HEADQUARTER=4;//大本营
	public static final int POS_END_LINE=8;//最后一行
	public static final int POS_END_LINE2=16;//最后第二行
	public static final int POS_RAINWAY=32;//铁路线
	public static final int POS_NORMAL=64;//普通位置
	public static final int POS_EMPTY_LINE=128;//最中间一行
	public static final int POS_EMPTY=256;//没有此位置
	public static final int POS_FIRST_LINE=512;//前沿阵地
}
